package com.miracle.moa.manager.feign;

import com.miracle.moa.manager.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author : miracle
 * @version : 1.0.0
 * @date : 2021/3/22 21:43
 */
@FeignClient(name = "moa-manage-service")
@RequestMapping(value = "/manager")
public interface UserFeign {

    @GetMapping("/user/load/{username}")
    User findUserAndRole(@PathVariable("username") String username);

}
